home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-03 | 1.6 KB | 56 lines | [ttro/ttxt] |
-
- PowerReplace •4• F.A.Q.
- (version 5.0, 1996.6.3)
- _________________________________________________________________
- About filter file
-
- [Q1] I would like to replace é by é for converting my text into HTML format. How to do it?
- - It's enough to add the following line in your filter-file:
- "é" "é"
-
- [Q2] Now I would like to do exactly the opposite, it means replace é by é how about it ?
- - This time the following line:
- "é" "é"
-
- [Q3] How to replace %22 by " (quotation marks)?
- - You must use the special character \" adding the following line:
- "%22" "\""
-
- [Q4] OK. But sometimes my text editor cut a word into two for separating two lines as %2-2 and %-22, how to correct it?
- - Add the following lines :
- "%2\n2" "\""
- "%2\r2" "\""
- "%\n22" "\""
- "%\r22" "\""
-
- [Q5] How to remove all words beginning with def?
- - Use pattern.
- 'def[a-zA-Zàâäéèêëçùüôö]*' ""
-
- [Q6] How to remove a line beginning with % (TeX comment)?
- [R]
- "%*\r" "\r"
- "%*\n" "\n"
-
- [Q7] How to remove all mathmatical formulas in a TeX file?
- -
- "$$*$$" ""
- "$*$" ""
-
- [Q8] I would like to replace ef by EF, except ef in def?
- - There is an astute method:
- "def" "my_save"
- "ef" "EF"
- "my_save" "def"
-
- [Q9] How to replace \alpha by æ (in a TeX file for example)?
- - (Don’t forget that there is perhaps \alphabet in the text file). Use pattern and meta.
- #meta "/"
- '\alpha[^a-zA-Z]' "æ"
-
- _________________________
- Guoniu Han
- email: guoniu@math.u-strasbg.fr
- http://130.79.4.26/~guoniu/mac/
- _________________________
-